package gamagora.game.utils
{
	import gamagora.game.entity.OSBird;
	
	import org.flixel.FlxGroup;
	import org.flixel.FlxObject;
	
	public class OSBirdTrio extends FlxGroup
	{
		private var _bird1:OSBird;
		private var _bird2:OSBird;
		private var _bird3:OSBird;
		
		public function OSBirdTrio(X:Number, Y:Number)
		{
			super();
			
			_bird1 = new OSBird(X, Y, true, true);
			_bird2 = new OSBird(X + 40, Y + 20, true, true);
			_bird3 = new OSBird(X + 10, Y + 40, true, true);
			_bird1.animOnly = true;
			_bird2.animOnly = true;
			_bird3.animOnly = true;
			_bird1.facing = FlxObject.LEFT;
			_bird2.facing = FlxObject.LEFT;
			_bird3.facing = FlxObject.LEFT;
				
			add(_bird1);
			add(_bird2);
			add(_bird3);
		}
		
		public override function update():void
		{
			super.update();
		}
		
		public function move(x:Number, y:Number):void
		{
			_bird1.x += x;
			_bird2.x += x;
			_bird3.x += x;
			
			_bird1.y -= y;
			_bird2.y -= y;
			_bird3.y -= y;
		}
	}
}